﻿using System;
using System.Collections.Generic;

public class Helper : IInitByActor, IDispose, ITick, ILogicUpdate
{
    private Actor _cacheActor;
    public Actor Actor 
    {
        get
        {
            return _cacheActor; 
        }
    }
    public void Dispose()
    {
        this.OnDispose();
        _cacheActor = null;
    }

    public void InitByActor(Actor actor)
    {
        this._cacheActor = actor;
        this.OnInit();
    }
    protected virtual void OnDispose() 
    {

    }
    protected virtual void OnInit() 
    {

    }

    public virtual void LogicUpdate(float detlatime)
    {
    }

    public virtual void Tick()
    {
    }
}
public enum EnumHelper
{
    LogSelfHelper,
    None,
}
